home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: sscanf bug??????
- Date: Mon, 12 Feb 96 21:28:35 GMT
- Organization: none
- Distribution: world
- Message-ID: <824160515snz@genesis.demon.co.uk>
- References: <4fimvo$82s@fnord.dfw.net> <10FEB199622213548@erich.triumf.ca>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <10FEB199622213548@erich.triumf.ca>
- bennett@erich.triumf.ca "P.Bennett" writes:
-
- >Borland says that you need to use "%ld" for long ints in both printf() and
- >scanf(). If ints and longs are the same size (as on many unix systems, I
- >believe) "%d" and "%ld" can be used interchangeably, but if they are not the
- >same (as on MS-DOS) then it _does_ make a difference.
-
- Please, *never* treat %d and %ld as interchangeable or suggest that others
- could do so.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-